<?php
defined('IN_APP') or die('Access Denied');
class Source_Excpetion extends Common_Excpetion
{
    public function __construct($ch, $status = NULL)
    {
        if (!$status)
        {
            $status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
        }
        $msg = array(
            200 => '200 Fuck',
            500 => '500 Internal Server Error',
            502 => '502 Bad Gateway'
        );
        parent::__construct($msg[$status], $status);
    }
}